package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Mqkfqk generated by hbm2java
 */
@Entity
@Table(name = "mqkfqk")
public class Mqkfqk implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private String mc;
    private String dz;
    private Long jzmj;
    private String yjzq;
    private BigDecimal yjzj;
    private Long ysts;
    private BigDecimal ysmj;
    private BigDecimal ysje;
    private Short xh;

    public Mqkfqk()
    {
    }

    public Mqkfqk( Long id, String mc )
    {
        this.id = id;
        this.mc = mc;
    }

    public Mqkfqk( Long id,
                   Jbqk jbqk,
                   String username,
                   String operation,
                   Date optdate,
                   String mc,
                   String dz,
                   Long jzmj,
                   String yjzq,
                   BigDecimal yjzj,
                   Long ysts,
                   BigDecimal ysmj,
                   BigDecimal ysje,
                   Short xh )
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.mc = mc;
        this.dz = dz;
        this.jzmj = jzmj;
        this.yjzq = yjzq;
        this.yjzj = yjzj;
        this.ysts = ysts;
        this.ysmj = ysmj;
        this.ysje = ysje;
        this.xh = xh;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "mc", nullable = false, length = 50)
    public String getMc()
    {
        return this.mc;
    }

    public void setMc( String mc )
    {
        this.mc = mc;
    }

    @Column(name = "dz", length = 50)
    public String getDz()
    {
        return this.dz;
    }

    public void setDz( String dz )
    {
        this.dz = dz;
    }

    @Column(name = "jzmj", precision = 18, scale = 0)
    public Long getJzmj()
    {
        return this.jzmj;
    }

    public void setJzmj( Long jzmj )
    {
        this.jzmj = jzmj;
    }

    @Column(name = "yjzq", length = 15)
    public String getYjzq()
    {
        return this.yjzq;
    }

    public void setYjzq( String yjzq )
    {
        this.yjzq = yjzq;
    }

    @Column(name = "yjzj", precision = 18)
    public BigDecimal getYjzj()
    {
        return this.yjzj;
    }

    public void setYjzj( BigDecimal yjzj )
    {
        this.yjzj = yjzj;
    }

    @Column(name = "ysts", precision = 18, scale = 0)
    public Long getYsts()
    {
        return this.ysts;
    }

    public void setYsts( Long ysts )
    {
        this.ysts = ysts;
    }

    @Column(name = "ysmj", precision = 18)
    public BigDecimal getYsmj()
    {
        return this.ysmj;
    }

    public void setYsmj( BigDecimal ysmj )
    {
        this.ysmj = ysmj;
    }

    @Column(name = "ysje", precision = 18)
    public BigDecimal getYsje()
    {
        return this.ysje;
    }

    public void setYsje( BigDecimal ysje )
    {
        this.ysje = ysje;
    }

    @Column(name = "xh")
    public Short getXh()
    {
        return this.xh;
    }

    public void setXh( Short xh )
    {
        this.xh = xh;
    }

}
